﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Xml;
using System.Xml.Linq;
using System.Xml.Serialization;
using MyMVC;
namespace PLCDEMO
{
    public class XML_Data
    { 
        public int sensor { get; set; }


        public int IntValue { get; set; }

        public int ThresholdLowTrack { get;  set; }
        public int ThresholdHighTrack { get; set; }
        public string StrValue { get; set; }
        //思路是 载入类名的
       
        public XML_Data()
        {
            this.sensor = 1;
            this.IntValue = 0;
            this.StrValue = "demo";
            this.ThresholdLowTrack = 0;
            this.ThresholdHighTrack = 255;
        }

        public void ResetData()
        {
            this.sensor = 1;
            this.IntValue = 0;
            this.StrValue = "demo";
            this.ThresholdLowTrack = 0;
            this.ThresholdHighTrack = 255;
        }
    }
}
